<%-- 
    Document   : mainmenu
    Created on : Oct 31, 2013, 9:07:46 PM
    Author     : Mr.T
--%>
<%@page import="java.sql.ResultSet"%>
<%@page import="mysql.DataProvider"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<% ResultSet rs1 ;%>
<%  rs1 = DataProvider.loadCategory(null); %>
<div class="span2 main-menu-span">
    <div class="nav-collapse sidebar-nav">
        <ul class="nav nav-tabs nav-stacked main-menu">
            <li><a href="../page/index.jsp"><i class="icon-home icon-white"></i><span class="hidden-tablet"> TRANG CHỦ </span></a></li>
            <li><a href="../page/dealmoi.jsp"><i class="icon-eye-open icon-white"></i><span class="hidden-tablet"> DEAL MỚI HÔM NAY </span></a></li>
            <% if(rs1.next()) %>
            <li><a href="../page/product.jsp?category=<%= rs1.getString("MaLoaiSP") %>"><i class="icon-edit icon-white"></i><span class="hidden-tablet"><%= rs1.getString("TenLoai") %></span></a></li>
            <% if(rs1.next()) %>
            <li><a href="../page/product.jsp?category=<%= rs1.getString("MaLoaiSP") %>"><i class="icon-list-alt icon-white"></i><span class="hidden-tablet"><%= rs1.getString("TenLoai") %></span></a></li>
            <li>
                <a class="dropmenu" href="#"><i class="fa-icon-folder-close-alt"></i><span class="hidden-tablet"> THỜI TRANG</span></a>
                <ul>
                    <% if(rs1.next()) %>
                    <li><a class="submenu" href="../page/product.jsp?category=<%= rs1.getString("MaLoaiSP") %>"><i class="fa-icon-file-alt"></i><span class="hidden-tablet"><%= rs1.getString("TenLoai") %></span></a></li>
                    <% if(rs1.next()) %>
                    <li><a class="submenu" href="../page/product.jsp?category=<%= rs1.getString("MaLoaiSP") %>"><i class="fa-icon-file-alt"></i><span class="hidden-tablet"><%= rs1.getString("TenLoai") %></span></a></li>
                    <% if(rs1.next()) %>
                    <li><a class="submenu" href="../page/product.jsp?category=<%= rs1.getString("MaLoaiSP") %>"><i class="fa-icon-file-alt"></i><span class="hidden-tablet"><%= rs1.getString("TenLoai") %></span></a></li>
                </ul>	
            </li>
            <% if(rs1.next()) %>
            <li><a href="../page/product.jsp?category=<%= rs1.getString("MaLoaiSP") %>"><i class="icon-font icon-white"></i><span class="hidden-tablet"><%= rs1.getString("TenLoai") %></span></a></li>
            <% if(rs1.next()) %>
            <li><a href="../page/product.jsp?category=<%= rs1.getString("MaLoaiSP") %>"><i class="icon-picture icon-white"></i><span class="hidden-tablet"><%= rs1.getString("TenLoai") %></span></a></li>
            <% if(rs1.next()) %>
            <li><a href="../page/product.jsp?category=<%= rs1.getString("MaLoaiSP") %>"><i class="icon-align-justify icon-white"></i><span class="hidden-tablet"><%= rs1.getString("TenLoai") %></span></a></li>
            <% if(rs1.next()) %>
            <li><a href="../page/product.jsp?category=<%= rs1.getString("MaLoaiSP") %>"><i class="icon-calendar icon-white"></i><span class="hidden-tablet"><%= rs1.getString("TenLoai") %></span></a></li>
            <% if(rs1.next()) %>
            <li><a href="../page/product.jsp?category=<%= rs1.getString("MaLoaiSP") %>"><i class="icon-th icon-white"></i><span class="hidden-tablet"> <%= rs1.getString("TenLoai") %></span></a></li>
            <% if(rs1.next()) %>
            <li><a href="../page/lienhe.jsp"><i class="icon-folder-open icon-white"></i><span class="hidden-tablet"> LIÊN HỆ</span></a></li>
            <% if(rs1.next()) %>
            <li><a href="../page/quanly.jsp"><i class="icon-star icon-white"></i><span class="hidden-tablet"> QUẢN LÝ</span></a></li>
            <% if(rs1.next()) %>
            <li><a href="../page/login.jsp"><i class="icon-lock icon-white"></i><span class="hidden-tablet"> ĐĂNG NHẬP</span></a></li>
        </ul>
    </div><!--/.well -->
</div><!--/span-->